<?php

/**
 * Tournament form.
 *
 * @package    dylemat
 * @subpackage form
 * @author     Your name here
 */
class TournamentForm extends BaseTournamentForm
{
  public function configure()
  {
	 $this->disableCSRFProtection();
        unset($this['created_at']);
	unset($this['updated_at']);
	unset($this['status']);	
	unset($this['ack_round']);        
               
        
	$aList=array("losowa","każdy z każdym","system szwajcarski");
	
	
	$this->widgetSchema->setNameFormat('newtur[%s]');
	
	$this->widgetSchema['type'] = new sfWidgetFormChoice(array('choices' => $aList));
	$this->validatorSchema['type'] = new sfValidatorChoice(array('choices' => array_keys($aList)));
	
	parent::configure();
	
  }
}
